<?php 
include('../conn.php');

$shopid = $_REQUEST['shopid'];
$result_data_array = array();
if(!$shopid){
	$result_data_array['code'] = -100;
	$result_data_array['msg'] = '商家信息错误';

	echo json_encode($result_data_array);
	exit;
}

$shop_sql = "select a.check,a.name,a.groom_shop,a.head_pic,a.phone,a.shop_daima,a.qq,a.content,a.city,a.address,a.srcimages,a.images,a.longitude,a.latitude,a.leimu,a.zileimu,a.huodong_miaoshu,a.freight_ins,a.htservice,a.licence,a.wenzi_miaoshu,a.jiage_miaoshu,a.vr_dizhi,b.name as categroy_name,b.cateid,b.rate from shop as a left join categroy as b on b.cateid = a.leimu where shopid = '".$shopid."'";
$shop_query = mysql_query($shop_sql);

$shop_array = mysql_fetch_assoc($shop_query);
if(!$shop_array){
	$result_data_array['code'] = -100;
	$result_data_array['msg'] = '商家信息错误';

	echo json_encode($result_data_array);
	exit;
}
$result_data_array['code'] = 200;
$result_data_array['msg'] = '成功';
$result_data_array['data'] = $shop_array;

	echo json_encode($result_data_array);
 ?>